{# Slow & locked's results (overseer_database.activity): by code, the longest held in all first, then the newest rows; read like Logs as Transactions is: the code cut at the edge, a click opens it, a copy takes it whole. #} {% from "pages/overseer/_macros.html" import opens_rows, row_cell, rows_head, subheading %} {% from "pages/overseer/database/_macros.html" import copy_cell %} {% set cell = row_cell("whitespace-nowrap truncate") %} {% if activity %}
{{ subheading("By code", first=True) }} {{ rows_head(["Count", "Held", "Longest", "Last", "Process", "Code"]) }} {% for group in activity_groups %} {{ copy_cell(group.processes, "process") }} {{ copy_cell(group.code, "code", opens=True) }} {% endfor %}
{{ group.count }} {{ group.held }} {{ group.longest }} {{ group.last }}
{{ subheading("Each, newest first") }} {{ rows_head(["When", "What", "Process", "Code"]) }} {% for row in activity %} {{ copy_cell(row.process, "process") }} {{ copy_cell(row.caller, "code", opens=True) }} {% endfor %}
{{ row.when }} {{ row.what }}
{% if activity_more %}

The newest {{ activity|length }}; {{ activity_more }} more are counted above.

{% endif %}
{% else %}

{{ activity_none }}

{% endif %}